@import './common.scss';
@import './theme.scss';
@import './element-ui.scss';
@import './animista.scss';
@import '../fonts/font.css';
@import '../iconfont/sv-icons.css';
@import '../iconfont/admin-icons.css';
@import '../iconfont/uni-icons.css';
@import '../iconfont/colorui-icons.css';

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
}

/* 解决 h1 标签在 webkit 内核浏览器中文字大小失效问题 */
:-webkit-any(article, aside, nav, section) h1 {
  font-size: 2em;
}

/* mask image */
.mask-image {
  padding-right: 50px;
  mask-image: linear-gradient(90deg, #000000 0%, #000000 calc(100% - 50px), transparent);
}

/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--el-border-color-darker);
  border-radius: 20px;
}

/* nprogress */
#nprogress .bar {
  background: var(--el-color-primary);
  z-index: 999999;
}
#nprogress .spinner-icon {
  border-top-color: var(--el-color-primary) !important;
  border-left-color: var(--el-color-primary) !important;
}
#nprogress .peg {
  box-shadow: 0 0 10px var(--el-color-primary), 0 0 5px var(--el-color-primary) !important;
}

// =============================

/* 主内容区域 */
.page-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.card {
  padding: 10px;
  background-color: var(--el-bg-color);
  border: 1px solid var(--el-border-color-light);
  border-radius: 6px;
  box-shadow: 0 0 12px rgb(0 0 0 / 5%);
  overflow: hidden;
  position: relative;
}

.table-filter {
  margin-bottom: 10px;
  padding-top: 18px;
  padding-bottom: 0;
}

.table-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;

  .table-control {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
  }

  .el-table {
    flex: 1;

    table {
      width: 100%;
    }
  }
}

.errpage-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  .not-img {
    margin-right: 120px;
  }
  .not-detail {
    display: flex;
    flex-direction: column;
    h2,
    h4 {
      padding: 0;
      margin: 0;
    }
    h2 {
      font-size: 60px;
      color: var(--el-text-color-primary);
    }
    h4 {
      margin: 30px 0 20px;
      font-size: 19px;
      font-weight: normal;
      color: var(--el-text-color-regular);
    }
    .el-button {
      width: 100px;
    }
  }
}

// 富文本
.tox-tinymce-aux {
  z-index: 99999 !important;
}

/* 保持宽高比并填充容器，但可能会裁剪部分图片 */
.bg-img-cover {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* 保持宽高比并填充容器，且不会裁剪图片，但图片可能不会完全填满容器 */
.bg-img-contain {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
/* 填充满容器，但图片可能会变形 */
.bg-img-full {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.glass {
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px) brightness(96%);
}